﻿<%@ Page Language="C#" AutoEventWireup="True" CodeBehind="SaleModify.aspx.cs" Inherits="CRM.Web.VehicleManage.SaleModify" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
    <title></title>
    <link href="<%= base.ResourcesPath + "Style/main.css" %>" rel="stylesheet" type="text/css" />
    <link href="<%= base.ResourcesPath + "Style/button.css" %>" rel="stylesheet" type="text/css" />
    <link href="<%= base.ResourcesPath + "Style/ui.tabs.css" %>" rel="stylesheet" type="text/css" />
    <script type="text/javascript" src="<%= base.ResourcesPath %>Js/jquery-1.6.2.min.js" ></script>
    <script src="<%= base.ResourcesPath %>Js/ui.core.js" type="text/javascript"></script> 
    <script src="<%= base.ResourcesPath %>Js/ui.tabs.js" type="text/javascript"></script> 
    <script type="text/javascript" src="<%= base.ResourcesPath %>Js/My97DatePicker/WdatePicker.js"  defer="defer" ></script>
    <script type="text/javascript" src="<%= base.ResourcesPath %>Js/MaskTextBox.js" ></script>
    <script type="text/javascript" src="<%= base.ResourcesPath %>Js/Common.js"></script>
    <script type="text/javascript" src="<%= base.ResourcesPath %>Js/button.js"></script>
    <script type="text/javascript" >
        $(document).ready(function() {

            $('#btnVehicleSearch').bind("click", function() {
                var url = 'VehicleSearch.aspx';
                var title = 'VehicleSearch';
                openPage(url, title, 900, 600);
            });
            //申请转服务
            $('#btnTransferService').bind("click", function() {
                var url = 'TransferService.aspx';
                var title = 'TransferService';
                openPage(url, title, 900, 600);
            });
            //
            $('#btnProductResourceSearch').bind("click", function() {
                var url = 'ProductResourceSearch.aspx';
                var title = 'ProductResourceSearch';
                openModalDialog(url, title, 800, 600);
            });
            //
            $('#btnCustomerSearch').bind("click", function() {
                var url = 'CustomerSearch.aspx';
                var title = 'CustomerSearch';
                openModalDialog(url, title, 800, 600);
            });
            $('#btnAddWorkOrder').bind("click", function() {
                var vinCode = $('.vinCode').val();
                var callType = '2';
                var url = '../Pop/CallInPopUpPage.aspx?VINCODE=' + vinCode + '&CallType=' + callType;
                var title = 'CallInPopUpPage';
//                openPage(url, title, 1200, 700);
                var width = 1200;
                var height = 700;
                var left = 200;
                var top = 240;
                window.open(url, '来电弹屏', "height=" + height + ",width=" + width + ",top=" + top + ", left=" + left + ",location=no,menubar=no,toolbar=no,resizable=yes,scrollbars=yes  ");
            
            });
            //
            //            $('#btnDealerSearch').bind("click", function() {
            //                var url = 'DealerSearch.aspx';
            //                var title = 'DealerSearch';
            //                openModalDialog(url, title, 800, 600);
            //            });
            //
            $('#btnAddContact').bind("click", function() {
                var vinCode = $('#hfVINCODE').val();
                var engineNumber = $('#hfENGINENUMBER').val();
                var dealerCode = $('#hfDEALERCODE').val();
                if (vinCode.length == 0) {
                    alert('整车编码不能为空!');
                    return;
                }
                if (engineNumber.length == 0) {
                    alert('发动机编号不能为空!');
                    return;
                }
                //                if (dealerCode.length == 0) {
                //                    alert('经销商代码不能为空!');
                //                    return;
                //                }
                var url = 'AddVehicleCustomer.aspx?VINCODE=' + vinCode + '&ENGINENUMBER=' + engineNumber + '&DEALERCODE=' + dealerCode + '&Now=' + new Date().toTimeString();
                var title = 'AddVehicleCustomer';
                openModalDialog(url, title, 800, 650);

            });
            //
            $('#btnAssociateContact').bind("click", function() {
                var vinCode = $('#hfVINCODE').val();
                var engineNumber = $('#hfENGINENUMBER').val();
                var dealerCode = $('#hfDEALERCODE').val();
                if (vinCode.length == 0) {
                    alert('整车编码不能为空!');
                    return;
                }
                if (engineNumber.length == 0) {
                    alert('发动机编号不能为空!');
                    return;
                }
                //                if (dealerCode.length == 0) {
                //                    alert('经销商代码不能为空!');
                //                    return;
                //                }
                var url = 'SetVehicleCustomer.aspx?VINCODE=' + vinCode + '&ENGINENUMBER=' + engineNumber + '&DEALERCODE=' + dealerCode + '&Now=' + new Date().toTimeString();
                var title = 'SetVehicleCustomer';
                openModalDialog(url, title, 800, 600);
            });

        });
        
        $(function() {
            $('#container-1 > ul').tabs();
        });
        
        //设置车辆信息
        function SetVehicleInfo(productCode, brand, vehicleType, series, models, engineModel, engineManufacturers) {
            $('.productCode').val(productCode);
            $('.brand').val(brand);
            $('.vehicleType').val(vehicleType);
            $('.series').val(series);
            $('.models').val(models);
            $('.engineModel').val(engineModel);
            $('.engineManufacturers').val(engineManufacturers);
            return true;
        }
        
        //设置客户信息
        function SetCustomerInfo(customerCode, customerName, contactName, contactTel, mobilePhone, homePhone, customerId, address) {
            $('.customerCode').val(customerCode);
            $('.customerName').val(customerName);
            $('.contactName').val(contactName);
            $('.contactTel').val(contactTel);
            $('.mobilePhone').val(mobilePhone);
            $('.HomePhone').val(homePhone);
            $('.customerId').val(customerId);
            $('.address').val(address);
            
        }
        
        //设置经销商信息
//        function SetDealerInfo(dealerCode, dealerName, marketDepartmentCode, marketDepartmentName, dealerId, marketDepartmentId) {
//            $('.dealerCode').val(dealerCode);
//            $('.dealerName').val(dealerName);
//            $('.marketDepartmentCode').val(marketDepartmentCode);
//            $('.marketDepartmentName').val(marketDepartmentName);
//            
//        }
    
    </script>
</head>
<body>
    <form id="form1" runat="server">
    <asp:ScriptManager ID="ScriptManager1" runat="server">
    </asp:ScriptManager>
<table border="0" cellpadding="0" cellspacing="0" id="tTitle">
    <tr>
	<td class="left">
	    <img src="<%= base.ResourcesPath %>Images/title_left.gif" alt="" />
	</td>
	<td class="middle">

    <div class="pagetitle">
        <div><asp:Label ID="lblTitle" runat="server" ></asp:Label></div>
    </div>
	
	</td>
	<td class="right">
	    <img src="<%= base.ResourcesPath %>Images/title_right.gif" alt="" />
	</td>
    </tr>
</table>
    <div id="divMain" >
    <div style="width: 100%" id="tBodyMain">
	    <table border="0" cellpadding="0" cellspacing="0" class="table" >	
		    <caption ></caption>
            <tr>
                <td class="title">
                    <span class="mark">*</span>整机编号(VIN):
                </td>
                <td class="content">
                    <asp:TextBox ID="txtVINCODE" runat="server" CssClass="txt vinCode" MaxLength="32" Rows="3"
                        TextMode="SingleLine"></asp:TextBox><input id="btnVehicleSearch" type="button" class="btn_search" />
                        <asp:Label runat="server" ID="lblVinCodeMessage" CssClass="mark"></asp:Label>
                        <asp:HiddenField runat="server" ID="hfVINCODE" /><asp:RequiredFieldValidator ID="rfvVINCODE" runat="server"
                            ErrorMessage="*" Display="Dynamic" ControlToValidate="txtVINCODE" Enabled="True"></asp:RequiredFieldValidator>
                </td>
                <td class="title">
                    <span class="mark">*</span>产品代码:
                </td>
                <td class="content">
                    <asp:TextBox ID="txtPRODUCTCODE" runat="server" CssClass="txt productCode" MaxLength="32" Rows="3"
                        TextMode="SingleLine"></asp:TextBox><input id="btnProductResourceSearch" type="button" class="btn_search" /><asp:RequiredFieldValidator ID="rfvPRODUCTCODE"
                            runat="server" ErrorMessage="*" Display="Dynamic" ControlToValidate="txtPRODUCTCODE"
                            Enabled="True"></asp:RequiredFieldValidator>
                </td>
                <td class="title">
                    品牌:
                </td>
                <td class="content">
                    <asp:TextBox ID="txtBRAND" runat="server" CssClass="txt brand" MaxLength="64" Rows="3"
                        TextMode="SingleLine"></asp:TextBox><asp:RequiredFieldValidator ID="rfvBRAND" runat="server"
                            ErrorMessage="*" Display="Dynamic" ControlToValidate="txtBRAND" Enabled="False"></asp:RequiredFieldValidator>
                </td>
            </tr>
            <tr>
                <td class="title">
                    类型:
                </td>
                <td class="content">
                    <asp:TextBox ID="txtVEHICLETYPE" runat="server" CssClass="txt vehicleType" MaxLength="64" Rows="3"
                        TextMode="SingleLine"></asp:TextBox><asp:RequiredFieldValidator ID="rfvVEHICLETYPE"
                            runat="server" ErrorMessage="*" Display="Dynamic" ControlToValidate="txtVEHICLETYPE"
                            Enabled="False"></asp:RequiredFieldValidator>
                </td>
                <td class="title">
                    系列:
                </td>
                <td class="content">
                    <asp:TextBox ID="txtSERIES" runat="server" CssClass="txt series" MaxLength="64" Rows="3"
                        TextMode="SingleLine"></asp:TextBox><asp:RequiredFieldValidator ID="rfvSERIES" runat="server"
                            ErrorMessage="*" Display="Dynamic" ControlToValidate="txtSERIES" Enabled="False"></asp:RequiredFieldValidator>
                </td>
                <td class="title">
                    机型:
                </td>
                <td class="content">
                    <asp:TextBox ID="txtMODELS" runat="server" CssClass="txt models" MaxLength="64" Rows="3"
                        TextMode="SingleLine"></asp:TextBox><asp:RequiredFieldValidator ID="rfvMODELS" runat="server"
                            ErrorMessage="*" Display="Dynamic" ControlToValidate="txtMODELS" Enabled="False"></asp:RequiredFieldValidator>
                </td>
            </tr>
            <tr>
                <td class="title">
                    发动机型号:
                </td>
                <td class="content">
                    <asp:TextBox ID="txtENGINEMODEL" runat="server" CssClass="txt engineModel" MaxLength="64" Rows="3"
                        TextMode="SingleLine"></asp:TextBox><asp:RequiredFieldValidator ID="rfvENGINEMODEL"
                            runat="server" ErrorMessage="*" Display="Dynamic" ControlToValidate="txtENGINEMODEL"
                            Enabled="False"></asp:RequiredFieldValidator>
                </td>
                <td class="title">
                    发动机厂家:
                </td>
                <td class="content">
                    <asp:TextBox ID="txtENGINEMANUFACTURERS" runat="server" CssClass="txt engineManufacturers" MaxLength="64"
                        Rows="3" TextMode="SingleLine"></asp:TextBox><asp:RequiredFieldValidator ID="rfvENGINEMANUFACTURERS"
                            runat="server" ErrorMessage="*" Display="Dynamic" ControlToValidate="txtENGINEMANUFACTURERS"
                            Enabled="False"></asp:RequiredFieldValidator>
                </td>
                <td class="title">
                    发动机编号:
                </td>
                <td class="content">
                    <asp:TextBox ID="txtENGINENUMBER" runat="server" CssClass="txt" MaxLength="32" Rows="3"
                        TextMode="SingleLine"></asp:TextBox><asp:HiddenField runat="server" ID="hfENGINENUMBER" /><asp:RequiredFieldValidator ID="rfvENGINENUMBER"
                            runat="server" ErrorMessage="*" Display="Dynamic" ControlToValidate="txtENGINENUMBER"
                            Enabled="False"></asp:RequiredFieldValidator>
                </td>
            </tr>
            <tr>
                <td class="title">
                    车架号:
                </td>
                <td class="content">
                    <asp:TextBox ID="txtFRAMENUMBER" runat="server" CssClass="txt" MaxLength="32" Rows="3"
                        TextMode="SingleLine"></asp:TextBox><asp:RequiredFieldValidator ID="rfvFRAMENUMBER"
                            runat="server" ErrorMessage="*" Display="Dynamic" ControlToValidate="txtFRAMENUMBER"
                            Enabled="False"></asp:RequiredFieldValidator>
                </td>
                <td class="title">
                    下线日期:
                </td>
                <td class="content">
                    <asp:TextBox ID="txtOFFLINEDATE" runat="server" CssClass="txt" MaxLength="20" Rows="3"
                        TextMode="SingleLine"></asp:TextBox><asp:RequiredFieldValidator ID="rfvOFFLINEDATE"
                            runat="server" ErrorMessage="*" Display="Dynamic" ControlToValidate="txtOFFLINEDATE"
                            Enabled="False"></asp:RequiredFieldValidator>
                </td>
                <td class="title">
                    购机日期:
                </td>
                <td class="content">
                    <asp:TextBox ID="txtPURCHASEDATE" runat="server" CssClass="txt" MaxLength="20" Rows="3"
                        TextMode="SingleLine"></asp:TextBox><asp:RequiredFieldValidator ID="rfvPURCHASEDATE"
                            runat="server" ErrorMessage="*" Display="Dynamic" ControlToValidate="txtPURCHASEDATE"
                            Enabled="False"></asp:RequiredFieldValidator>
                </td>
            </tr>
            <tr>
                <td class="title">
                    用户代码:
                </td>
                <td class="content">
                    <asp:TextBox ID="txtCUSTOMERCODE" runat="server" CssClass="txt customerCode" MaxLength="32" Rows="3"
                        TextMode="SingleLine"></asp:TextBox><asp:RequiredFieldValidator ID="rfvCUSTOMERCODE"
                            runat="server" ErrorMessage="*" Display="Dynamic" ControlToValidate="txtCUSTOMERCODE"
                            Enabled="False"></asp:RequiredFieldValidator>
                    <asp:TextBox ID="txtCustomerId" runat="server" style="display: none;" CssClass="customerId" ></asp:TextBox>        
                </td>
                <td class="title"><div class="nowrap">
                    <span class="mark">*</span>用户姓名:</div>
                </td>
                <td class="content">
                    <asp:TextBox ID="txtCUSTOMERNAME" runat="server" CssClass="txt customerName" MaxLength="32" Rows="3"
                        TextMode="SingleLine"></asp:TextBox><input id="btnCustomerSearch" type="button" class="btn_search" /><asp:RequiredFieldValidator ID="rfvCUSTOMERNAME"
                            runat="server" ErrorMessage="*" Display="Dynamic" ControlToValidate="txtCUSTOMERNAME"
                            Enabled="True"></asp:RequiredFieldValidator>
                </td>
                <td class="title">
                    用户手机:
                </td>
                <td class="content">
                    <asp:TextBox ID="txtOWNERSMOBILEPHONE" runat="server" CssClass="txt mobilePhone txtOWNERSMOBILEPHONE" MaxLength="20"
                        Rows="3" TextMode="SingleLine"></asp:TextBox><input id="btnOWNERSMOBILEPHONE" type="button" class="btn_call" control="txtOWNERSMOBILEPHONE" /><asp:RequiredFieldValidator ID="rfvOWNERSMOBILEPHONE"
                            runat="server" ErrorMessage="*" Display="Dynamic" ControlToValidate="txtOWNERSMOBILEPHONE"
                            Enabled="False"></asp:RequiredFieldValidator>
                </td>
            </tr>
            <tr>
                <td class="title"><div class="nowrap">
                    用户家庭电话:</div>
                </td>
                <td class="content">
                    <asp:TextBox ID="txtOWNERSHOMEPHONE" runat="server" CssClass="txt HomePhone txtOWNERSHOMEPHONE" MaxLength="20"
                        Rows="3" TextMode="SingleLine"></asp:TextBox><input id="btnOWNERSHOMEPHONE" type="button" class="btn_call" control="txtOWNERSHOMEPHONE" /><asp:RequiredFieldValidator ID="rfvOWNERSHOMEPHONE"
                            runat="server" ErrorMessage="*" Display="Dynamic" ControlToValidate="txtOWNERSHOMEPHONE"
                            Enabled="False"></asp:RequiredFieldValidator>
                </td>
                <td class="title"><div class="nowrap">
                    联系人姓名:</div>
                </td>
                <td class="content">
                    <asp:TextBox ID="txtCONTACTNAME" runat="server" CssClass="txt contactName" MaxLength="32" Rows="3"
                        TextMode="SingleLine"></asp:TextBox><asp:RequiredFieldValidator ID="rfvCONTACTNAME"
                            runat="server" ErrorMessage="*" Display="Dynamic" ControlToValidate="txtCONTACTNAME"
                            Enabled="False"></asp:RequiredFieldValidator>
                </td>
                <td class="title"><div class="nowrap">
                    联系人电话:</div>
                </td>
                <td class="content">
                    <asp:TextBox ID="txtCONTACTTEL" runat="server" CssClass="txt contactTel txtCONTACTTEL" MaxLength="20" Rows="3"
                        TextMode="SingleLine"></asp:TextBox><input id="btnCONTACTTEL" type="button" class="btn_call" control="txtCONTACTTEL" /><asp:RequiredFieldValidator ID="rfvCONTACTTEL"
                            runat="server" ErrorMessage="*" Display="Dynamic" ControlToValidate="txtCONTACTTEL"
                            Enabled="False"></asp:RequiredFieldValidator>
                </td>
            </tr>
            <tr>
                <td class="title"><div class="nowrap">
                        用户地址:
                    </div>
                </td>
                <td class="content" colspan="5">
                    <asp:TextBox ID="txtADDRESS" runat="server" CssClass="txt txt90 address" MaxLength="256" Rows="3"
                        TextMode="SingleLine"></asp:TextBox><asp:RequiredFieldValidator ID="RequiredFieldValidator1"
                            runat="server" ErrorMessage="*" Display="Dynamic" ControlToValidate="txtADDRESS"
                            Enabled="False"></asp:RequiredFieldValidator>
                </td>
            </tr>
            <tr>
                <td class="title">
                    出厂日期:
                </td>
                <td class="content">
                    <asp:TextBox ID="txtMANUFACTUREDATE" runat="server" CssClass="txt" MaxLength="20"
                        Rows="3" TextMode="SingleLine"></asp:TextBox><asp:RequiredFieldValidator ID="rfvMANUFACTUREDATE"
                            runat="server" ErrorMessage="*" Display="Dynamic" ControlToValidate="txtMANUFACTUREDATE"
                            Enabled="False"></asp:RequiredFieldValidator>
                </td>
                <td class="title">
                    变速箱型号:
                </td>
                <td class="content">
                    <asp:TextBox ID="txtGEARTYPE" runat="server" CssClass="txt" MaxLength="16" Rows="3"
                        TextMode="SingleLine"></asp:TextBox><asp:RequiredFieldValidator ID="rfvGEARTYPE"
                            runat="server" ErrorMessage="*" Display="Dynamic" ControlToValidate="txtGEARTYPE"
                            Enabled="False"></asp:RequiredFieldValidator>
                </td>
                <td class="title">
                    变速箱号:
                </td>
                <td class="content">
                    <asp:TextBox ID="txtGEARCODE" runat="server" CssClass="txt" MaxLength="16" Rows="3"
                        TextMode="SingleLine"></asp:TextBox><asp:RequiredFieldValidator ID="rfvGEARCODE"
                            runat="server" ErrorMessage="*" Display="Dynamic" ControlToValidate="txtGEARCODE"
                            Enabled="False"></asp:RequiredFieldValidator>
                </td>
            </tr>
            <tr>
                <td class="title">市场部:</td>
                <td class="content">
                    <asp:UpdatePanel ID="UpdatePanel1" runat="server">
                        <ContentTemplate>
                <asp:DropDownList ID="ddlMARKETDEPARTMENTCODE" runat="server"   CssClass="ddl" 
                                AutoPostBack="True" 
                                onselectedindexchanged="ddlMARKETDEPARTMENTCODE_SelectedIndexChanged"></asp:DropDownList>                            
                        </ContentTemplate>
                        <Triggers>
                            <asp:AsyncPostBackTrigger ControlID="ddlBUSINESSDIVISIONID" 
                                EventName="SelectedIndexChanged" />
                        </Triggers>
                    </asp:UpdatePanel>
                </td>
                <td class="title">经销商:</td>
                <td class="content">
                    <asp:UpdatePanel ID="UpdatePanel2" runat="server">
                        <ContentTemplate>
                            <asp:DropDownList ID="ddlDEALERCODE" runat="server" CssClass="ddl" ></asp:DropDownList>
                        </ContentTemplate>
                        <Triggers>
                            <asp:AsyncPostBackTrigger ControlID="ddlMARKETDEPARTMENTCODE" 
                                EventName="SelectedIndexChanged" />
                        </Triggers>
                    </asp:UpdatePanel>
                </td>
                <td class="title">服务商:</td>
                <td class="content">
                    <asp:UpdatePanel ID="UpdatePanel3" runat="server">
                        <ContentTemplate>
                            <asp:DropDownList ID="ddlSTATIONCODE" runat="server"  CssClass="ddl" ></asp:DropDownList>
                        </ContentTemplate>
                        <Triggers>
                            <asp:AsyncPostBackTrigger ControlID="ddlMARKETDEPARTMENTCODE" 
                                EventName="SelectedIndexChanged" />
                        </Triggers>
                    </asp:UpdatePanel>
                </td>
            </tr>
            <tr>
                <td class="title">
                    购机方式:
                </td>
                <td class="content">
                    <asp:DropDownList ID="ddlPURCHASEMETHOD" runat="server" CssClass="ddl" ></asp:DropDownList><asp:RequiredFieldValidator ID="rfvPURCHASEMETHOD"
                            runat="server" ErrorMessage="*" Display="Dynamic" ControlToValidate="ddlPURCHASEMETHOD"
                            Enabled="False"></asp:RequiredFieldValidator>
                </td>
                <td class="title">
                    是否政府补贴:
                </td>
                <td class="content">
                    <asp:DropDownList ID="ddlISSUBSIDIES" runat="server" CssClass="ddl" ></asp:DropDownList><asp:RequiredFieldValidator ID="rfvISSUBSIDIES"
                            runat="server" ErrorMessage="*" Display="Dynamic" ControlToValidate="ddlISSUBSIDIES"
                            Enabled="False"></asp:RequiredFieldValidator>
                </td>
                <td class="title">
                    销售类型:
                </td>
                <td class="content">
                    <asp:DropDownList ID="ddlSALESTYPE" runat="server" CssClass="ddl" ></asp:DropDownList><asp:RequiredFieldValidator ID="rfvSALESTYPE"
                            runat="server" ErrorMessage="*" Display="Dynamic" ControlToValidate="ddlSALESTYPE"
                            Enabled="False"></asp:RequiredFieldValidator>
                </td>
            </tr>
            <tr>
                <td class="title">
                    车辆状态:
                </td>
                <td class="content">
                    <asp:DropDownList ID="ddlVEHICLESTATUS" runat="server" CssClass="ddl" ></asp:DropDownList><asp:RequiredFieldValidator ID="rfvVEHICLESTATUS"
                            runat="server" ErrorMessage="*" Display="Dynamic" ControlToValidate="ddlVEHICLESTATUS"
                            Enabled="False"></asp:RequiredFieldValidator>
                </td>
                <td class="title">
                    上车编号:
                </td>
                <td class="content">
                    <asp:TextBox ID="txtCARNUMBER" runat="server" CssClass="txt" MaxLength="32" Rows="3"
                        TextMode="SingleLine"></asp:TextBox><asp:RequiredFieldValidator ID="rfvCARNUMBER"
                            runat="server" ErrorMessage="*" Display="Dynamic" ControlToValidate="txtCARNUMBER"
                            Enabled="False"></asp:RequiredFieldValidator>
                </td>
                <td class="title">
                    底盘编号:
                </td>
                <td class="content">
                    <asp:TextBox ID="txtCHASSISNO" runat="server" CssClass="txt" MaxLength="32" Rows="3"
                        TextMode="SingleLine"></asp:TextBox><asp:RequiredFieldValidator ID="rfvCHASSISNO"
                            runat="server" ErrorMessage="*" Display="Dynamic" ControlToValidate="txtCHASSISNO"
                            Enabled="False"></asp:RequiredFieldValidator>
                </td>
            </tr>
            <tr>
                <td class="title">
                    备注:
                </td>
                <td class="content" colspan="5">
                    <asp:TextBox ID="txtREMARK" runat="server" CssClass="txt txt90" MaxLength="256" Rows="3"
                        TextMode="MultiLine"></asp:TextBox><asp:RequiredFieldValidator ID="rfvREMARK" runat="server"
                            ErrorMessage="*" Display="Dynamic" ControlToValidate="txtREMARK" Enabled="False"></asp:RequiredFieldValidator>
                </td>
            </tr>
            <tr>
                <td class="title">
                    销售日期:
                </td>
                <td class="content">
                    <asp:TextBox ID="txtFIRSTSALESDATE" runat="server" CssClass="txt" MaxLength="20" Rows="3"
                        TextMode="SingleLine"></asp:TextBox><asp:RequiredFieldValidator ID="RequiredFieldValidator2"
                            runat="server" ErrorMessage="*" Display="Dynamic" ControlToValidate="txtFIRSTSALESDATE"
                            Enabled="False"></asp:RequiredFieldValidator>
                </td>
                <td class="title">
                    销售发票号:
                </td>
                <td class="content">
                    <asp:TextBox ID="txtINVOICECODE" runat="server" CssClass="txt" MaxLength="16" Rows="3"
                        TextMode="SingleLine"></asp:TextBox><asp:RequiredFieldValidator ID="rfvINVOICECODE"
                            runat="server" ErrorMessage="*" Display="Dynamic" ControlToValidate="txtINVOICECODE"
                            Enabled="False"></asp:RequiredFieldValidator>
                </td>
                <td class="title">
                    公告号:
                </td>
                <td class="content">
                    <asp:TextBox ID="txtBULLETINCODE" runat="server" CssClass="txt" MaxLength="16" Rows="3"
                        TextMode="SingleLine"></asp:TextBox><asp:RequiredFieldValidator ID="rfvBULLETINCODE"
                            runat="server" ErrorMessage="*" Display="Dynamic" ControlToValidate="txtBULLETINCODE"
                            Enabled="False"></asp:RequiredFieldValidator>
                </td>
            </tr>
            <tr>
                <td class="title">
                    购车用途:
                </td>
                <td class="content">
                    <asp:TextBox ID="txtPURPOSE" runat="server" CssClass="txt" MaxLength="32" Rows="3"
                        TextMode="SingleLine"></asp:TextBox><asp:RequiredFieldValidator ID="rfvPURPOSE" runat="server"
                            ErrorMessage="*" Display="Dynamic" ControlToValidate="txtPURPOSE" Enabled="False"></asp:RequiredFieldValidator>
                </td>
                <td class="title"><div class="nowrap">
                    总成系列号格式定义:</div>
                </td>
                <td class="content">
                    <asp:TextBox ID="txtSERIALMENO" runat="server" CssClass="txt" MaxLength="16" Rows="3"
                        TextMode="SingleLine"></asp:TextBox><asp:RequiredFieldValidator ID="rfvSERIALMENO"
                            runat="server" ErrorMessage="*" Display="Dynamic" ControlToValidate="txtSERIALMENO"
                            Enabled="False"></asp:RequiredFieldValidator>
                </td>
                <td class="title"><div class="nowrap">
                    有无GPS:</div>
                </td>
                <td class="content">
                    <asp:DropDownList ID="ddlISHASGPS" runat="server" CssClass="ddl" ></asp:DropDownList>
                </td>
            </tr>
            <tr>
                <td class="title">
                    排量:
                </td>
                <td class="content">
                    <asp:TextBox ID="txtEMISSIONS" runat="server" CssClass="txt" MaxLength="16" Rows="3"
                        TextMode="SingleLine"></asp:TextBox><asp:RequiredFieldValidator ID="rfvEMISSIONS"
                            runat="server" ErrorMessage="*" Display="Dynamic" ControlToValidate="txtEMISSIONS"
                            Enabled="False"></asp:RequiredFieldValidator>
                </td>
                <td class="title">
                    创建人:
                </td>
                <td class="content">
                    <asp:TextBox ID="txtCREATEPEOPLE" runat="server" CssClass="txt" MaxLength="32" Rows="3"
                        TextMode="SingleLine"></asp:TextBox><asp:RequiredFieldValidator ID="rfvCREATEPEOPLE"
                            runat="server" ErrorMessage="*" Display="Dynamic" ControlToValidate="txtCREATEPEOPLE"
                            Enabled="False"></asp:RequiredFieldValidator>
                </td>
                <td class="title">
                    创建时间:
                </td>
                <td class="content">
                    <asp:TextBox ID="txtCREATETIME" runat="server" CssClass="txt" MaxLength="20" Rows="3"
                        TextMode="SingleLine"></asp:TextBox><asp:RequiredFieldValidator ID="rfvCREATETIME"
                            runat="server" ErrorMessage="*" Display="Dynamic" ControlToValidate="txtCREATETIME"
                            Enabled="False"></asp:RequiredFieldValidator>
                </td>
            </tr>
            <tr>
                <td class="title">
                    最后修改人:
                </td>
                <td class="content">
                    <asp:TextBox ID="txtLASTMODIFYPEOPLE" runat="server" CssClass="txt" MaxLength="32"
                        Rows="3" TextMode="SingleLine"></asp:TextBox><asp:RequiredFieldValidator ID="rfvLASTMODIFYPEOPLE"
                            runat="server" ErrorMessage="*" Display="Dynamic" ControlToValidate="txtLASTMODIFYPEOPLE"
                            Enabled="False"></asp:RequiredFieldValidator>
                </td>
                <td class="title">
                    最后修改时间:
                </td>
                <td class="content">
                    <asp:TextBox ID="txtLASTMODIFYTIME" runat="server" CssClass="txt" MaxLength="20"
                        Rows="3" TextMode="SingleLine"></asp:TextBox><asp:RequiredFieldValidator ID="rfvLASTMODIFYTIME"
                            runat="server" ErrorMessage="*" Display="Dynamic" ControlToValidate="txtLASTMODIFYTIME"
                            Enabled="False"></asp:RequiredFieldValidator>
                </td>
                <td class="title">
                    事业部名称:
                </td>
                <td class="content">
                    <asp:UpdatePanel ID="UpdatePanel4" runat="server">
                        <ContentTemplate>
                            <asp:DropDownList ID="ddlBUSINESSDIVISIONID" runat="server" CssClass="ddl" 
                                AutoPostBack="True" 
                                onselectedindexchanged="ddlBUSINESSDIVISIONID_SelectedIndexChanged"  >
                            </asp:DropDownList>
                        </ContentTemplate>
                    </asp:UpdatePanel>
                </td>
            </tr>
            <tr style="display:none;">
                <td class="title">
                </td>
                <td class="content">
                </td>
                <td class="title">
                </td>
                <td class="content">
                </td>
                <td class="title">
                    二次销售日期:
                </td>
                <td class="content">
                    <asp:TextBox ID="txtLASTSALEDATE" runat="server" CssClass="txt" MaxLength="20" Rows="3"
                        TextMode="SingleLine"></asp:TextBox><asp:RequiredFieldValidator ID="rfvLASTSALEDATE"
                            runat="server" ErrorMessage="*" Display="Dynamic" ControlToValidate="txtLASTSALEDATE"
                            Enabled="False"></asp:RequiredFieldValidator>
                </td>
            </tr>
        </table>
    </div>
    <div style="width: 100%" id="tBodyButton">
        <div class="btndiv">
		    <span class="btnspan"><asp:Button ID="btnOK" runat="server" Text="确 定"  CommandName="Save"  CssClass="btn title_qd" OnClick="btnOK_Click" /></span>
		    <span><input id="btnAssociateContact" runat="server"  type="button" value="关联已有客户" class="btn"  Visible="false" /></span>
		    <span><input id="btnAddContact" runat="server"  type="button" value="新建关联客户" class="btn"  Visible="false" /></span>		    
		    <span><input id="btnTransferService" runat="server" type="button" value="申请转服务" class="btn" Visible="false"/></span> 
		    <span><input id="btnAddWorkOrder" runat="server" type="button"  CommandName="AddWorkOrder"  value="新建工单" class="btn"  Visible="false" /></span>
		    <span class="btnspan"><input id="btnCancel" runat="server" type="button" value="返 回" class="btn title_fh" /></span>
	    </div>
    </div>    
    <asp:PlaceHolder runat="server" ID="phTabs">
        <div id="container-1">
            <ul class="ui-tabs-nav">
                <li class="ui-tabs-selected"><a href="#fragment-1"><span>相关客户信息资料</span></a></li>
                <li class=""><a href="#fragment-2"><span>相关索赔单信息</span></a></li>
            </ul>
            <div align="center" class="ui-tabs-panel" id="fragment-1">
                <iframe id="frameContactList" runat="server" src="" width="100%" height="400" frameborder="no"
                    border="0" marginwidth="0" marginheight="0" scrolling="auto" allowtransparency="yes">
                </iframe>
            </div>
            <div class="ui-tabs-panel ui-tabs-hide" id="fragment-2">
                <iframe id="frameClaimForm" runat="server" src="" width="100%" height="400" frameborder="no" border="0" marginwidth="0" marginheight="0" scrolling="auto" allowtransparency="yes"></iframe>
            </div>
        </div> 
    </asp:PlaceHolder>  
    </div> 
    </form>
</body>
</html>
